package com.zcf.shiro.idcentity.major.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色权限实例表
 * </p>
 *
 * @author dev2
 * @since 2020-05-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("T_IDC_ROLE_PERMIT_INST")
public class TIdcRolePermitInst extends Model<TIdcRolePermitInst> {

    /**
    * 所有字段名
    */
    public static class Columns {
        /**
        * 实例id
        */
        public static final String instid = "INSTID";
        /**
        * 权限id
        */
        public static final String functionid = "FUNCTIONID";
        /**
        * 角色id
        */
        public static final String roleid = "ROLEID";
        /**
        * 创建人id
        */
        public static final String creator = "CREATOR";
        /**
        * 操作时间
        */
        public static final String operateTime = "OPERATE_TIME";
        /**
        * 备用1
        */
        public static final String reserve1 = "RESERVE1";
        /**
        * 备用2
        */
        public static final String reserve2 = "RESERVE2";
        /**
        * 备用3
        */
        public static final String reserve3 = "RESERVE3";
        /**
        * 备用4
        */
        public static final String reserve4 = "RESERVE4";
        /**
        * 备用5
        */
        public static final String reserve5 = "RESERVE5";
    }

    /**
     * 实例id
     */
    @TableId("INSTID")
    private String instid;

    /**
     * 权限id
     */
    @TableField("FUNCTIONID")
    private String functionid;

    /**
     * 角色id
     */
    @TableField("ROLEID")
    private String roleid;

    /**
     * 创建人id
     */
    @TableField("CREATOR")
    private String creator;

    /**
     * 操作时间
     */
    @TableField("OPERATE_TIME")
    private LocalDateTime operateTime;

    /**
     * 备用1
     */
    @TableField("RESERVE1")
    private String reserve1;

    /**
     * 备用2
     */
    @TableField("RESERVE2")
    private String reserve2;

    /**
     * 备用3
     */
    @TableField("RESERVE3")
    private String reserve3;

    /**
     * 备用4
     */
    @TableField("RESERVE4")
    private String reserve4;

    /**
     * 备用5
     */
    @TableField("RESERVE5")
    private String reserve5;


    @Override
    protected Serializable pkVal() {
        return this.instid;
    }

}
